package com.hotel.service;

import com.hotel.entity.Notify;
import com.hotel.entity.PageBean;
import com.hotel.exception.EntityException;

import java.sql.SQLException;
import java.util.Map;

/**
 * @Author Str
 * @Date 2021/11/1 10:33
 * @Description :
 */
public interface NotifyService {

    // 新增
    void saveNotify(Notify notify) throws Exception;

    // 修改
    void updateNotify(Notify notify) throws EntityException, SQLException;

    // 下载公告
    void growDownloadCnt(String id) throws SQLException;

    Notify getNotifyById(String id) throws SQLException, EntityException;

    // 根据前端设置的条件获取用户
    PageBean<Notify> getNotifyList(Map<String, Object> map) throws SQLException;

    // 删除
    void deleteNotify(String id) throws SQLException, EntityException;

}
